package com.hm.shopping.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * @author shishun.wang
 * @date 上午11:42:42 2017年9月27日
 * @version 1.0
 * @describe
 */
@Data
@ConfigurationProperties(prefix = "com.hm.shopping.init")
public class SystemEnvConfigProperties {
	
	/**
	 * 是否开启开发模式
	 */
	private boolean devModel;
	
	/**
	 * 开启数据权限
	 */
	private boolean openDataAuth;

	/**
	 * pc端底部，版权声明
	 */
	private String footerCopyrightStatementPC;
	
	private Qiniu qiniu = new Qiniu();
	
	private HttpInvokerProvider httpInvokerProvider = new HttpInvokerProvider();
	
	/**
	 * 自动收货
	 */
	private FinishOrderTask finishOrder = new FinishOrderTask();
	
	@Data
	public class FinishOrderTask{
		
		/**
		 * 规则
		 */
		private String cron;
		
		/**
		 * 间隔(天)
		 */
		private int interval;
	}

	@Data
	public class Qiniu{
		
		private String prefixUri;
		
		private String accessKey;
		
		private String secretKey;
		
		private String bucket;
	}
	
	@Data
	public class HttpInvokerProvider{
		
		private String manager;
	}
}
